<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>地震局培训平台</title>
		<!--<link rel="stylesheet" href="bootstrap/css/bootstrap.css" />-->
		<link rel="stylesheet" href="style/myProject.css" />
	</head>
	<body>
		<div id="show">
			<div class="i_title2"></div>
			<div id="content">
				<div class="list" id="listData">
					<div class="box">
						<div class="part">
							<div class="text">公共自行车维护</div>
							<div class="text2"><div class="name">曹先生</div><div class="phone">188888888</div></div>
						</div>
						<div class="part">
							<div class="date">日期</div>
							<div class="date2">2017-07-29</div>
						</div>
						<div class="part">
							<div class="time">服务时长</div>
							<div class="time2">8小时</div>
						</div>
					</div>
				</div>
				<div class="pagebox">
					<div class="pageborder"></div>
					<div class="numbox">
						<div class="page">1</div>
						<div class="page in">2</div>
						<div class="page">3</div>
					</div>
				</div>
			</div>
		</div>
		<script type="text/javascript" src="script/jquery.min.js"></script>
		<script type="text/javascript" src="script/ishoock.tools.js"></script>
		<script type="text/javascript" src="script/common.js"></script>
		<script type="text/javascript">
			
			$(function(){
				
				// 获取服务时长数据请求
				$.ajax({
					type: "GET",
					url: host +"user/getListOfProjectByUserId?userId=1",
					dataType: "json",
					success: function(data){
						console.log(data)
						$.each(data.result,function(index,item){
							$('#listData').append('<div class="box">'+
													'<div class="part">'+
														'<div class="text">'+item.projectTitle+'</div>'+
														'<div class="text2"><div class="name">'+item.userName+'</div><div class="phone">'+item.userPhone+'</div></div>'+
													'</div>'+
													'<div class="part">'+
														'<div class="date">加入日期</div>'+
														'<div class="date2">'+item.signDate+'</div>'+
													'</div>'+
													'<div class="part">'+
														'<div class="time">服务时长</div>'+
														'<div class="time2">'+item.hours+'</div>'+
													'</div>'+
												'</div>')
						})
						
					}
				
				})
				
				
			})
		</script>
		
		
	</body>
</html>
